﻿package mortal.common.label
{
    import com.mui.controls.*;
    import flash.display.*;

    public class PriceLabel extends GLabel
    {
        private var _redLine:Sprite;

        public function PriceLabel()
        {
            return;
        }// end function

        override protected function createChildren() : void
        {
            super.createChildren();
            this._redLine = new Sprite();
            this.addChild(this._redLine);
            return;
        }// end function

        public function drawRedLine() : void
        {
            this._redLine.graphics.clear();
            this._redLine.graphics.moveTo(0, this.height / 2);
            this._redLine.graphics.lineStyle(2, 16711680, 0.75);
            this._redLine.graphics.lineTo(this.textField.textWidth, this.height / 2);
            return;
        }// end function

        public function clearRedLine() : void
        {
            this._redLine.graphics.clear();
            return;
        }// end function

        override public function dispose(param1:Boolean = true) : void
        {
            this.clearRedLine();
            super.dispose(param1);
            return;
        }// end function

    }
}
